package com.qf.day06.fish;

public class Demo1 {
    public static void main(String[] args) {
        Animal animal1=new Animal("二哈",18,"雄性");
        animal1.sleep();
        animal1.eat();
        System.out.println(animal1);
        Fish fish1=new Fish("小鲤鱼",3,"雄性");
        fish1.sleep();
        fish1.eat();
        fish1.swim();
        System.out.println(fish1);
        Bird bird1=new Bird("老鹰",15,"雄性","黄色");
       bird1.sleep();
       bird1.eat();
       bird1.fly();
        System.out.println( bird1);
    }


}
